import random
age = random.randint(1,100)

print("————猜年龄游戏————")
      
guess = 0     #猜数字
num = 0      #计数
while guess != age:
    guess = int(input("请输入您猜测的年龄："))
    if guess > age:
        print("您猜测的年龄太大了")
    elif guess < age:
        print("您猜测的年龄太小了")
    elif guess == age:
        print("恭喜，您猜对了！")
        print("Game Over")
    num = num + 1
    if num == 5:
        print("对不起，您猜测的次数达到上限")
        break